/**
 * Created by xiu on 2017/4/4.
 */
import React from "react";
import { Calendar,Modal} from 'antd';
import moment from 'moment';

// 推荐在入口文件全局设置 locale
import aa from 'moment/locale/zh-cn';
moment.locale('zh-cn');

export default class CalendarModal extends React.Component{
    constructor(props){
        super(props);
        this.state={
            visible:false
        }
    }

    componentWillMount(){

    }

    closemodal(){
        this.setState({visible:false});
    }

    seletdata(value){
        // console.warn(value.toString())
    }

    render(){
        return (
            <Modal visible={this.state.visible} footer={null} onCancel={this.closemodal.bind(this)}>
                <Calendar fullscreen={false} onSelect={this.seletdata.bind(this)}/>
            </Modal>
        )
    }
}
